package test;

import processing.core.PApplet;

public class MyProcessingSketch extends PApplet {
	private static final long serialVersionUID = 2316572926141982474L;
	Stripe[] stripes = new Stripe[50];

	public static void main(String[] args) {
		PApplet.main(new String[] { "--present", "MyProcessingSketch" });
	}

	public void setup() {
		size(200, 200);

		for (int i = 0; i < stripes.length; ++i) {
			stripes[i] = new Stripe(this);
		}
	}

	public void draw() {
		background(100);

		for (int i = 0; i < stripes.length; ++i) {
			stripes[i].move();
			stripes[i].display();
		}
	}
}
